package com.quwan.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author quan
 * @date 2021-12-29 17:59
 */
@Getter
@AllArgsConstructor
public enum ParentCatesEnum {

    one(1, "生活服务", "凡事帮你忙"),
    two(2, "休闲娱乐", "一起玩"),
    three(3, "职业技能", "工作顾问");
    Integer type;
    String caption;
    String tips;
    public static ParentCatesEnum getByType(Integer type) {
        for (ParentCatesEnum value : values()) {
            if (value.getType().equals(type)) {
                return value;
            }
        }
        return null;
    }
}
